package player;

import java.awt.event.ActionEvent;

import javax.swing.AbstractAction;

import geography.Orientation;
import graphics.MazePanel;


public class PlayerMove extends AbstractAction {
	private static final long serialVersionUID = 1L;
	
	private MazePanel panel;
	private Orientation direction;
	
	public PlayerMove(MazePanel panelIn, Orientation specificDirection){
		panel = panelIn;
		direction = specificDirection;
	}

	public void actionPerformed(ActionEvent e) {		
		panel.movePlayer(direction);
	}	
	

}
